package com.ruoyi.user.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 认证审核对象 tb_user_verification
 * 
 * @author ruoyi
 * @date 2025-07-30
 */
public class TbUserVerification extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 认证ID */
    private Long verificationId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String realName;

    /** 身份证号（加密存储） */
    @Excel(name = "身份证号", readConverterExp = "加=密存储")
    private String idCardNo;

    /** 身份证正面照片URL */
    @Excel(name = "身份证正面照片URL")
    private String idCardFront;

    /** 身份证背面照片URL */
    @Excel(name = "身份证背面照片URL")
    private String idCardBack;

    /** 人脸照片URL */
    @Excel(name = "人脸照片URL")
    private String facePhoto;

    /** 认证状态：0-待审核，1-已通过，2-已拒绝 */
    @Excel(name = "认证状态：0-待审核，1-已通过，2-已拒绝")
    private Integer verificationStatus;

    /** 拒绝原因 */
    @Excel(name = "拒绝原因")
    private String rejectReason;

    /** 认证通过时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "认证通过时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date verifiedTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 管理用户信息 */
    private List<TbUser> tbUserList;

    public void setVerificationId(Long verificationId) 
    {
        this.verificationId = verificationId;
    }

    public Long getVerificationId() 
    {
        return verificationId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setRealName(String realName) 
    {
        this.realName = realName;
    }

    public String getRealName() 
    {
        return realName;
    }

    public void setIdCardNo(String idCardNo) 
    {
        this.idCardNo = idCardNo;
    }

    public String getIdCardNo() 
    {
        return idCardNo;
    }

    public void setIdCardFront(String idCardFront) 
    {
        this.idCardFront = idCardFront;
    }

    public String getIdCardFront() 
    {
        return idCardFront;
    }

    public void setIdCardBack(String idCardBack) 
    {
        this.idCardBack = idCardBack;
    }

    public String getIdCardBack() 
    {
        return idCardBack;
    }

    public void setFacePhoto(String facePhoto) 
    {
        this.facePhoto = facePhoto;
    }

    public String getFacePhoto() 
    {
        return facePhoto;
    }

    public void setVerificationStatus(Integer verificationStatus) 
    {
        this.verificationStatus = verificationStatus;
    }

    public Integer getVerificationStatus() 
    {
        return verificationStatus;
    }

    public void setRejectReason(String rejectReason) 
    {
        this.rejectReason = rejectReason;
    }

    public String getRejectReason() 
    {
        return rejectReason;
    }

    public void setVerifiedTime(Date verifiedTime) 
    {
        this.verifiedTime = verifiedTime;
    }

    public Date getVerifiedTime() 
    {
        return verifiedTime;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public List<TbUser> getTbUserList()
    {
        return tbUserList;
    }

    public void setTbUserList(List<TbUser> tbUserList)
    {
        this.tbUserList = tbUserList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("verificationId", getVerificationId())
            .append("userId", getUserId())
            .append("realName", getRealName())
            .append("idCardNo", getIdCardNo())
            .append("idCardFront", getIdCardFront())
            .append("idCardBack", getIdCardBack())
            .append("facePhoto", getFacePhoto())
            .append("verificationStatus", getVerificationStatus())
            .append("rejectReason", getRejectReason())
            .append("verifiedTime", getVerifiedTime())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("tbUserList", getTbUserList())
            .toString();
    }
}